package com.jsrj.service.impl;

import com.jsrj.domain.Shop;
import com.jsrj.mapper.ShopMapper;
import com.jsrj.service.IShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-03
 */
@Service
public class ShopServiceImpl implements IShopService
{
    @Autowired
    private ShopMapper shopMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param shopId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public Shop selectShopByShopId(Long shopId)
    {
        return shopMapper.selectShopByShopId(shopId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param shop 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Shop> selectShopList(Shop shop)
    {
        return shopMapper.selectShopList(shop);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param shop 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertShop(Shop shop)
    {
        return shopMapper.insertShop(shop);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param shop 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateShop(Shop shop)
    {
        return shopMapper.updateShop(shop);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param shopIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteShopByShopIds(Long[] shopIds)
    {
        return shopMapper.deleteShopByShopIds(shopIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param shopId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteShopByShopId(Long shopId)
    {
        return shopMapper.deleteShopByShopId(shopId);
    }

    @Override
    public List<Shop> queryAll() {
        return shopMapper.queryAll();
    }

    @Override
    public Integer deleteByShopId(Long shopId) {
        return shopMapper.deleteByShopId(shopId);
    }

    @Override
    public Integer updateByShopId(Shop shop) {
        return shopMapper.updateByShopId(shop);
    }

    @Override
    public Integer insertByShop(Shop shop) {
        return shopMapper.insertByShop(shop);
    }
}
